<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<style>
    .layui-form-item{
        margin-bottom: 8px;
    }
</style>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row">
            <form class="layui-form layui-form-pane" id="signupForm">
                <input id="id" name="id" th:value="${survey.id}" type="hidden">
                <div class="layui-form-item">
                    <label class="layui-form-label">调查主题：</label>
                    <div class="layui-input-block">
                        <input id="questionTitle" name="questionTitle" th:value="${survey.questionTitle}"
                               class="layui-input" type="text">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">问卷阐述内容：</label>
                    <div class="layui-input-block">
                        <textarea id="surveyInfo" name="surveyInfo" th:text="${survey.surveyInfo}"
                                  class="layui-input" rows="5" style="display: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="state" id="state"
                                class="layui-input chosen-select">
                            <option value="1" th:selected="${survey.state eq 1}">开启</option>
                            <option value="0" th:selected="${survey.state eq 0}">禁用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">是否默认：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="isDefault" id="isDefault"
                                class="layui-input chosen-select">
                            <option value="1" th:selected="${survey.isDefault eq 1}">默认</option>
                            <option value="0" th:selected="${survey.isDefault eq 0}">非默认</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">使用类型：</label>
                    <div class="layui-input-block">
                        <select data-placeholder="--请选择--" name="useType" id="useType"
                                class="layui-input chosen-select">
                            <option value="0" th:selected="${survey.useType eq 0}">包保人员使用</option>
                            <option value="1" th:selected="${survey.useType eq 1}">督导巡检人员使用</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">开始时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="beginTime" id="beginTime"
                               th:value="${#dates.format(survey.beginTime, 'yyyy-MM-dd')}" placeholder="请选择开始时间" autocomplete="off" class="layui-input" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">结束时间：</label>
                    <div class="layui-input-block">
                        <input type="text" name="endTime" id="endTime" th:value="${#dates.format(survey.endTime, 'yyyy-MM-dd')}"
                               placeholder="请选择结束时间" autocomplete="off" class="layui-input" />
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="demo1">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/survey/detail.js}"></script>
</body>
</html>
